package io.adrainty.bolee.security.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import io.adrainty.bolee.security.models.bo.DeptBO;
import io.adrainty.bolee.security.models.entity.DeptEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author AdRainty
 * @version V1.0.0
 * @since 2025/8/3 上午1:03
 */

@Mapper
public interface IDeptMapper extends BaseMapper<DeptBO> {

    /**
     * 根据角色ID列表查询部门列表
     *
     * @param roleIdList 角色ID列表
     * @return 部门列表
     */
    List<DeptEntity> findDeptByRoleIds(@Param("roleIdList") List<Long> roleIdList);

}
